package com.bjsxt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjsxt.domain.SysRole;
import org.apache.ibatis.annotations.Param;

public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 根据用户 id 查询用户的 role_code 数据
     *
     * @param userId 用户 id
     * @return role_code
     */
    String getUserRoleCode(@Param("userId") Long userId);
}